<h3>产品类别</h3>

<table>
  <tr>
    <th>id</th>
    <th>标志名</th>
    <th>显示名</th>
    <th>父类</th>
    <th>属性模板</th>
  </tr>

<% for procate in @procates %>
  <tr>
    <td><%= procate.id %></td>
    <td><%=h procate.identity_name %></td>
    <td><%=h procate.description %></td>
    <td><%= procate.parent_id? ? procate.parent.description : "父类" %></td>
    <td><%= procate.template_category_id? ?  procate.template_category.display_name : "无" %></td>
    <td><%= link_to 'Edit', edit_procate_path(procate) %></td>
    <td><%#= link_to 'Destroy', procate, :confirm => '请不要随意删除类别，删除该类会删除该类的所有产品?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New procate', new_procate_path %>
